class Loadbox < ActiveRecord::Base
  has_many :user_settings, :dependent => :destroy
  has_many :outlets, :dependent => :destroy
  has_many :logs, :dependent => :destroy
  has_many :power_logs, :dependent => :destroy
  belongs_to :user
  
  validates :version_id, :name, :interface_id, :boxmanager_id, :presence => true
end
